#ifndef __ENCODER_H
#define __ENCODER_H

#include "stm32f10x.h"

/* Encoder1, Encoder2, Encoder3 ... */
typedef struct {

    TIM_TypeDef *encode_TIMx;
    
} EncoderX;

int CODER_Init(EncoderX *EncoderX, int32_t* *code, int16_t* *speed);
void MOTsampler_Init(float sampleTime_s);

#endif
